import os
path = os.getcwd()+"\\script2"
dirs = os.listdir(path)
for dir in dirs:
    print(dir)
    f1 = open(path+"\\"+dir,"r",encoding='UTF-8')
    content = f1.read()
    f1.close()
    t = content.replace("],","]\n")
    with open(path+"\\"+dir,"w") as f2:
        f2.write(t)